package com.zhentao.util;

import com.zhentao.domain.SysUser;

/**
 * @ClassName: ThreadLocalUtil
 * @Desrciption: Mr.chengfenzhan
 * @Author: 知安_程烽展
 * @Date: 2024/9/3 10:29
 */
public class ThreadLocalUtil {
    private static final ThreadLocal<SysUser> threadLocal = new ThreadLocal<>();
    public static void set(SysUser sysUser){
        threadLocal.set(sysUser);
    }
    public static SysUser get(){
        return threadLocal.get();
    }
}
